;(function(window) {

  var svgSprite = '<svg>' +
    '' +
    '<symbol id="icon-mima" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M511.004 525.019c-25.929 0-46.94 21.008-46.94 46.941 0 13.901 6.043 26.387 15.646 34.981v43.249c0 17.285 14.010 31.296 31.295 31.296 17.281 0 31.295-14.011 31.295-31.296v-43.249c9.604-8.595 15.647-21.080 15.647-34.981-0.001-25.932-21.013-46.941-46.943-46.941v0zM730.064 384.204h-31.296v-78.232c0-103.704-84.056-187.757-187.765-187.757s-187.765 84.053-187.765 187.757v78.232h-31.295c-43.214 0-78.235 35.022-78.235 78.232v297.285c0 43.208 35.022 78.228 78.235 78.228h438.118c43.196 0 78.235-35.018 78.235-78.228v-297.285c0.001-43.211-35.038-78.232-78.234-78.232v0zM511.004 149.508c86.41 0 156.471 70.056 156.471 156.463v78.232h-312.921v-78.232h-0.022c0-86.408 70.061-156.463 156.471-156.463v0zM777.004 759.717c0 25.929-21.011 46.937-46.94 46.937h-438.118c-25.93 0-46.941-21.007-46.941-46.937v-297.281c0-25.93 21.011-46.941 46.941-46.941h438.118c25.929 0 46.94 21.011 46.94 46.941v297.281zM777.004 759.717z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-jiantou" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M302.006823 69.323878c-3.257184-2.758834-7.461949-4.431939-12.06478-4.431939-10.31595 0-18.676361 8.362458-18.676361 18.677385 0 4.656043 1.713015 8.904811 4.533246 12.173251l-0.008186 0.008186 0.106424 0.104377c0.700965 0.800225 428.76632 416.039461 428.76632 416.039461S276.595061 927.515528 275.897166 928.313707l-0.106424 0.105401 0.005117 0.007163c-2.817162 3.270487-4.533246 7.518231-4.533246 12.174274 0 10.313903 8.363482 18.676361 18.676361 18.676361 4.773723 0 9.125845-1.788739 12.428054-4.732791l442.212564-428.66706c0 0 13.047154-14.583137 0-27.631314 0 0-441.918875-428.350858-442.435645-428.79702l-0.134053-0.127913L302.006823 69.323878 302.006823 69.323878z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-chakanmima" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M864.249 513.853c0 0 0 0 0 0s0 0 0 0c0 1.853 0 1.853 0 1.853 0 0 0 0 0 0 0 0 0 0 0 0 0 5.562-3.708 11.123-7.417 14.831-7.417 9.27-14.831 16.685-24.101 25.955-44.495 44.495-94.551 83.427-150.169 113.091-35.225 18.54-72.304 33.371-111.237 40.787-42.641 7.417-85.282 7.417-127.922-1.853-74.158-16.686-140.9-55.618-200.227-103.821-27.809-22.248-53.765-46.348-76.012-74.158-9.27-11.123-9.27-25.955 0-37.079 7.417-9.27 14.831-16.685 24.101-25.955 44.495-44.495 94.551-83.427 150.169-113.091 35.225-18.54 72.304-33.371 111.237-40.787 42.641-7.417 85.282-7.417 127.922 1.853 74.158 16.686 140.9 55.618 200.227 103.821 27.809 22.248 53.765 46.348 76.012 74.158 3.708 3.708 7.417 9.27 7.417 14.831 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3.708 0 3.708 0 5.562 0-1.853 0-1.853 0 0zM512 374.808c-72.304 0-131.631 59.326-131.631 131.631s59.326 131.631 131.631 131.631c72.304 0 131.631-59.326 131.631-131.631s-59.326-131.631-131.631-131.631zM512 573.179c-37.079 0-66.742-29.663-66.742-66.742s29.663-66.742 66.742-66.742c37.079 0 66.742 29.663 66.742 66.742s-29.663 66.742-66.742 66.742z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-dagou" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M512 232.047983c-154.603147 0-279.930527 125.331473-279.930527 279.930528 0 154.603147 125.32738 279.930527 279.930527 279.930527 154.599054 0 279.930527-125.32738 279.930527-279.930527 0-154.599054-125.331473-279.930527-279.930527-279.930528z m-36.849256 407.308613L340.404854 504.528841l33.79571-33.812083 100.95018 101.001345L648.966465 397.851217l33.803897 33.8172-207.619618 207.688179z" fill="#515151" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-yonghu" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M935.060 940.898c0 21.203-17.209 38.098-38.098 38.098-21.203 0-38.098-17.209-38.098-38.098l-0.306-3.69c0-1.533 0.306-3.069 0.306-4.3-23.963-167.44-167.44-290.333-342.259-292.481-1.533 0-2.768 0.306-4.3 0.306-1.533 0-2.768-0.306-3.997-0.306-172.663 1.842-314.907 122.279-341.331 286.647 0.915 3.379 1.533 6.452 1.533 10.141l0.306 3.69c0 21.514-17.209 38.715-38.715 38.715s-38.715-17.209-38.715-38.715v-0.306h-0.619c0-1.228 0.306-2.148 0.306-3.379 0-3.069 0.619-6.145 1.228-9.215 19.969-154.234 123.202-279.279 264.219-333.040-82.034-52.534-135.486-145.325-135.486-251.317 0-164.064 127.5-296.787 291.26-296.787 164.064 0 291.26 133.035 291.26 296.787 0 105.997-53.462 198.781-135.486 251.317 139.792 53.462 242.711 176.658 263.913 329.356 1.533 3.997 2.455 8.294 2.455 12.9l0.619 3.69zM736.895 343.634c0-124.123-100.465-224.588-224.588-224.588s-224.588 100.465-224.588 224.588c0 123.813 100.465 224.588 224.588 224.588 124.123 0 224.588-100.465 224.588-224.588z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-guanbi" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M286.56 753.26c-3.955 0-11.865 0-15.82-3.955-7.911-7.911-7.911-19.776 0-27.685l450.879-446.924c7.911-7.911 19.776-7.911 27.685 0s7.911 19.776 0 27.685l-446.924 446.924c-3.955 3.955-11.865 3.955-15.82 3.955zM266.785 646.473l98.877-94.922c-3.955-11.865-3.955-23.731-3.955-39.551 0-87.012 67.237-158.203 150.293-158.203 15.82 0 31.641 3.955 43.506 7.911l67.237-67.237c-35.596-11.865-71.192-19.776-110.742-19.776-150.293 0-280.81 98.877-332.227 237.305 19.776 51.416 51.416 98.877 87.012 134.473M757.215 377.527l-98.877 94.922c3.955 11.865 3.955 23.731 3.955 39.551 0 87.012-67.237 158.203-150.293 158.203-15.82 0-31.641-3.955-43.506-7.911l-67.237 67.237c35.596 11.865 71.192 19.776 110.742 19.776 150.293 0 280.81-98.877 332.227-237.305-19.776-51.416-51.416-98.877-87.012-134.473z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-sousuo" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M580.512 412.16c-46.48-46.496-121.856-46.496-168.352 0s-46.496 121.872 0 168.352a119.04 119.04 0 0 0 168.352 0 119.04 119.04 0 0 0 0-168.352zM386.256 606.416a155.712 155.712 0 0 1 0-220.176c60.8-60.784 159.36-60.784 220.176 0a155.712 155.712 0 0 1 0 220.176c-60.816 60.784-159.376 60.784-220.176 0z m290.848 70.688a21.28 21.28 0 0 1-30.08 0l-30.064-30.08a21.248 21.248 0 1 1 30.064-30.064l30.08 30.064c8.32 8.32 8.32 21.776 0 30.08z" fill="#d81e06" ></path>' +
    '' +
    '</symbol>' +
    '' +
    '</svg>'
  var script = function() {
    var scripts = document.getElementsByTagName('script')
    return scripts[scripts.length - 1]
  }()
  var shouldInjectCss = script.getAttribute("data-injectcss")

  /**
   * document ready
   */
  var ready = function(fn) {
    if (document.addEventListener) {
      if (~["complete", "loaded", "interactive"].indexOf(document.readyState)) {
        setTimeout(fn, 0)
      } else {
        var loadFn = function() {
          document.removeEventListener("DOMContentLoaded", loadFn, false)
          fn()
        }
        document.addEventListener("DOMContentLoaded", loadFn, false)
      }
    } else if (document.attachEvent) {
      IEContentLoaded(window, fn)
    }

    function IEContentLoaded(w, fn) {
      var d = w.document,
        done = false,
        // only fire once
        init = function() {
          if (!done) {
            done = true
            fn()
          }
        }
        // polling for no errors
      var polling = function() {
        try {
          // throws errors until after ondocumentready
          d.documentElement.doScroll('left')
        } catch (e) {
          setTimeout(polling, 50)
          return
        }
        // no errors, fire

        init()
      };

      polling()
        // trying to always fire before onload
      d.onreadystatechange = function() {
        if (d.readyState == 'complete') {
          d.onreadystatechange = null
          init()
        }
      }
    }
  }

  /**
   * Insert el before target
   *
   * @param {Element} el
   * @param {Element} target
   */

  var before = function(el, target) {
    target.parentNode.insertBefore(el, target)
  }

  /**
   * Prepend el to target
   *
   * @param {Element} el
   * @param {Element} target
   */

  var prepend = function(el, target) {
    if (target.firstChild) {
      before(el, target.firstChild)
    } else {
      target.appendChild(el)
    }
  }

  function appendSvg() {
    var div, svg

    div = document.createElement('div')
    div.innerHTML = svgSprite
    svgSprite = null
    svg = div.getElementsByTagName('svg')[0]
    if (svg) {
      svg.setAttribute('aria-hidden', 'true')
      svg.style.position = 'absolute'
      svg.style.width = 0
      svg.style.height = 0
      svg.style.overflow = 'hidden'
      prepend(svg, document.body)
    }
  }

  if (shouldInjectCss && !window.__iconfont__svg__cssinject__) {
    window.__iconfont__svg__cssinject__ = true
    try {
      document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
    } catch (e) {
      console && console.log(e)
    }
  }

  ready(appendSvg)


})(window)